package org.veridiandynamics.server.model;

import org.veridiandynamics.server.domain.User;

/**
 * Model class for administrators and all their possible tasks.
 *
 */
public class AdminModel 
{
	/**
	 * Creates a user.
	 * @param user user name
	 * @param userID ID for user object
	 * @param password password for user account
	 */
	public void addUser(User user, String userID, String password)
	{
		//TODO Hook this up to the DAO
		user.setPassword(password);
		user.setUsername(userID);
	}
	
	/**
	 * Edit user.
	 * 
	 * @param user
	 */
	public void editUser(User user)
	{
		
	}

	
	/**
	 * Suspend user.
	 * @param user
	 */
	public void suspendAccount(User user)
	{
		//TODO Hook this up to the DAO
		user.setIsSuspended(true);
	}
	
	/**
	 * Unsuspend user.
	 * @param user
	 */
	public void unsuspendAccount(User user)
	{
		//TODO Hook this up to the DAO
		user.setIsSuspended(false);
	}
}
